package org.feiye.studyday06;

import java.util.Scanner;

public class Week {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num;
		do {
			System.out.println("输入1-7之间的数字，输入0退出");
			num = sc.nextInt();
			switch (num) {
			case 1:
				System.out.println("星期一");
				break;
			case 2:
				System.out.println("星期二");
				break;
			case 3:
				System.out.println("星期三");
				break;
			case 4:
				System.out.println("星期四");
				break;
			case 5:
				System.out.println("星期五");
				break;
			case 6:
				System.out.println("星期六");
				break;
			case 7:
				System.out.println("星期日");
				break;
			case 0:
				System.out.println("程序结束！");
				break;
			default:
				System.out.print("输入错误，请重新输入！");
				break;
				}
		} while (num != 0);
	}
}
